/**
 * 
 */
package br.com.agoravai16072011.webapp;

import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

import br.com.agoravai16072011.common.UtilProperties;

/**
 * @author brisatc074.ferreira
 *
 */
public class PropertiesServlet extends HttpServlet {
	private static final long serialVersionUID = 1L;
	
	public void init(ServletConfig config)throws ServletException
	{
		ServletContext context = config.getServletContext();
		String realPath = context.getRealPath(config.getInitParameter("initProperties"));
		UtilProperties.getInstance(realPath);
		
		System.out.println(realPath);
	}
}
